import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(),

  routes: [
    {
      path: "/",
      component: () => import("../layout/index.vue"),
      children: [
        {
          path: "/city",
          component: () => import("../pages/City.vue"),
        },
        {
          path: "/todo",
          component: () => import("../pages/todo/TodoApp.vue"),
        },
      ],
    },
  ],
});

export default router;
